package cn.iocoder.yudao.module.wrzj.controller.admin.wrzjuser.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 伟人之家-用户新增/修改 Request VO")
@Data
public class WrzjUserSaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "8923")
    private Long id;

    @Schema(description = "微信openID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "openid不能为空")
    private String openid;

    @Schema(description = "手机号")
    private String mobile;

    @Schema(description = "密码")
    private String password;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "状态不能为空")
    private Integer status;

    @Schema(description = "是否被授权使用本小程序")
    private Boolean authorized;

    @Schema(description = "注册 IP")
    private String registerIp;

    @Schema(description = "最后登录IP")
    private String loginIp;

    @Schema(description = "最后登录时间")
    private LocalDateTime loginDate;

    @Schema(description = "用户昵称")
    private String nickname;

    @Schema(description = "用户姓名")
    private String name;

    @Schema(description = "头像")
    private String avatar;

    @Schema(description = "伟人好感度")
    private String score;

    @Schema(description = "用户性别")
    private Integer sex;

    @Schema(description = "出生日期")
    private LocalDateTime birthday;

    @Schema(description = "会员备注")
    private String mark;

}
